.class Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;
.super Ljava/lang/Object;
.source "StreamingMediaPlayer.java"

# interfaces
.implements Landroid/media/MediaPlayer$OnCompletionListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/StreamingMediaPlayer;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;->a:Lcom/estrongs/android/pop/app/StreamingMediaPlayer;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onCompletion(Landroid/media/MediaPlayer;)V
    .locals 6

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;->a:Lcom/estrongs/android/pop/app/StreamingMediaPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->a(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long p1, v0, v2

    if-nez p1, :cond_0

    goto :goto_1

    .line 2
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;->a:Lcom/estrongs/android/pop/app/StreamingMediaPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->a(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)J

    move-result-wide v0

    const-wide/32 v4, 0x40000

    cmp-long p1, v0, v4

    if-gez p1, :cond_3

    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;->a:Lcom/estrongs/android/pop/app/StreamingMediaPlayer;

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->a(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)J

    move-result-wide v0

    cmp-long p1, v0, v2

    if-lez p1, :cond_1

    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;->a:Lcom/estrongs/android/pop/app/StreamingMediaPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->b(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Z

    move-result p1

    if-eqz p1, :cond_1

    goto :goto_0

    .line 4
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;->a:Lcom/estrongs/android/pop/app/StreamingMediaPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->l(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Z

    move-result p1

    if-nez p1, :cond_2

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;->a:Lcom/estrongs/android/pop/app/StreamingMediaPlayer;

    const/4 v0, 0x6

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->h(I)V

    .line 6
    :cond_2
    new-instance p1, Ljava/lang/Thread;

    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a$a;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;)V

    invoke-direct {p1, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 7
    invoke-virtual {p1}, Ljava/lang/Thread;->start()V

    goto :goto_1

    .line 8
    :cond_3
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;->a:Lcom/estrongs/android/pop/app/StreamingMediaPlayer;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->a(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;Z)V

    :goto_1
    return-void
.end method
